import Vue from 'vue'
import App from './App.vue'
import router from "./router"
import Vant from "vant"
import 'vant/lib/index.css'
import axios from "axios"
import store from './store'
Vue.use(Vant);

Vue.config.productionTip = false 
axios.interceptors.request.use((config)=>{
  config.baseURL = "http://a347qg.natappfree.cc";
  // console.log("响应")
  vm.loading = true;
  return config;
});
axios.interceptors.response.use((res)=>{
  // console.log("响应拦截");
  vm.loading = false;
  return res;
})

Vue.config.productionTip = false

axios.defaults.baseURL="http://a347qg.natappfree.cc"

var vm = new Vue({
  router,
  store,
  data:{
    loading:false
  },
  render: h => h(App),
}).$mount('#app')
